Automated Presentation of directory src/exampleCode/cap/

HUB | Up | Download | Pheedbak | Tree | Topic | A-Z | Search | Hot | New


Please be aware: what appears below are the v4.2 DT bits in auto-generated html form.
As we have the time, we will update these to reflect the current "state of the world".


README file from "cap" directory

                        Simple capping demonstration

     This program renders capped and intersected objects.  It uses stencil
     and user-defined clipping planes to compute and light the internal 
     surfaces (where they are exposed by a clipping plane) and to highlight
     intersections of solids.  All in Just 1200 lines of code!

        

        When a polygonal surface representation of a solid object is
        clipped, the inside of the "solid" is revealed.  This
        program demonstrates a technique to "cap" the solid, so that
        it appears solid even when clipped.  In order to do this, it
        draws each object twice, once to render the visible surfaces,
        and again counting the number of accesses at each pixel.
        Finally, the clipping planes themselves are drawn, with pixels
        actually modified only where the pixel access count in the
        stencil buffer is odd (i.e. where the inside of a solid was
        revealed).
        

type "make demo" to run the program

Files of interest from "src/exampleCode/cap" directory

Documentation

Reference

Subdirectories


Select any combo of files you'd like to send yourself a compressed tar image of. Executables/scripts are indicated with a trailing `*' character. (Depending upon the browser, it may be necessary to hold down the Ctrl key to select/deselect disjoint items.) a compressed tar image of the above-selected items.
OR, ...
a compressed tar image of the entire cap directory.

Copyright © 1995, Silicon Graphics, Inc.